﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Project.Core.Api.Common.Base
{
    /// <summary>
    /// baseDto
    /// </summary>
    public class BaseDto
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public BaseDto()
        {
            CreateTime = DateTime.Now;
            IsValid = true;
        }

        /// <summary>
        /// id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 增加时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime DeleteTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsValid { get; set; }
    }
}
